package com.lyf.design.practice.theory.structure.adapter;

import org.junit.Test;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class AdapterTests {
    @Test
    public void test1() throws Exception {
        Charge charge = new ChinaCharge();
        charge.charge(new ChinaDevice());
        // 不能充电--
        // charge.charge(new AmericaDevice());
        new AmericaChargeAdapter().charge(new AmericaDevice());
    }
}
